rsync-tar-install: 
    file.managed: #cp文件到minion端
        - name: /usr/local/src/Python-3.6.4.tar.xz
        - source: salt://files/Python-3.6.4.tar.xz
        - user: root
        - group: root
        - mode: 644

    cmd.run:
        - names: |
            cd /usr/local/src
            tar zvf Python-3.6.4.tar.xz && cd Python-*
            ./configure --prefix=/usr/local
            make && make  altinstall
            ln -s /usr/local/bin/python3.6 /usr/bin/python3

